package com.xiaobai.im.client.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xiaobai.im.common.entity.User;
import com.xiaobai.im.dao.UserMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/user")
public class TestController {
    @Resource
    private UserMapper userMapper;

    @GetMapping("/getUsers")
    public List<User> getUsers() {
        return userMapper.selectList(new QueryWrapper<>());
    }
}
